package com.yisu.auction.api.domain.request;

/**
 * 分页基类
 * Created by zj on 2017/3/8.
 */
public class BasePage {
    private String appSign;
    private String appType;
    private String appVersion;
    private String userToken;
    private String memberId;
    private String currentSystemTime;//当前系统时间


    //页码
    private int pageindex;
    //每页大小
    private int pagesize;

    private int startNum;

    private int endNum;

    public int getPageindex() {
        return pageindex;
    }

    public void setPageindex(int pageindex) {
        this.pageindex = pageindex;
    }

    public int getPagesize() {
        return pagesize;
    }

    public void setPagesize(int pagesize) {
        this.pagesize = pagesize;
    }

    public int getStartNum() {
        return startNum = (pageindex - 1) * pagesize;
    }


    public int getEndNum() {
        return endNum = pagesize;
    }

    public String getAppSign() {
        return appSign;
    }

    public void setAppSign(String appSign) {
        this.appSign = appSign;
    }

    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getUserToken() {
        return userToken;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }


    public String getCurrentSystemTime() {
        return currentSystemTime;
    }

    public void setCurrentSystemTime(String currentSystemTime) {
        this.currentSystemTime = currentSystemTime;
    }

    @Override
    public String toString() {
        return "BasePage{" +
                "appSign='" + appSign + '\'' +
                ", appType='" + appType + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", userToken='" + userToken + '\'' +
                ", memberId='" + memberId + '\'' +
                ", currentSystemTime='" + currentSystemTime + '\'' +
                ", pageindex=" + pageindex +
                ", pagesize=" + pagesize +
                ", startNum=" + startNum +
                ", endNum=" + endNum +
                '}';
    }
}
